package com.crm.manager.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class Course {

    // 课程id
    private Integer id;
    // 课程名称
    private String name;
    // 课程编号
    private String code;
    // 课程科目
    private String subject;
    // 课程价格
    private Long price;
    // 课程适用人群
    @JsonSerialize(using = ToStringSerializer.class)
    private Long applicablePerson;
    //课程介绍
    private String info;
    //创建人
    private String createBy;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //修改人
    private String updateBy;
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
